package feign;

import com.ms.education.R;
import com.ms.education.order.OrderApplication;
import com.ms.education.order.service.feign.CourseFeignService;
import com.ms.education.order.service.feign.UcenterFeignService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * <p>Project:education-test
 * <p>Powered by ms on 2023-02-16 18:07:47
 *
 * @author ms
 * @version 1.0
 * @since 1.8
 */
@SpringBootTest(classes = OrderApplication.class)
public class test {

    @Autowired
    private CourseFeignService courseFeignService;

    @Autowired
    private UcenterFeignService ucenterFeignService;

    @Test
    public void test01(){
        R r = courseFeignService.getCourseById(30, false, false);
        System.out.println(r);
    }

    @Test
    public void test02(){
        R r = ucenterFeignService.getById(701);
        System.out.println(r);
    }

}
